package kr.hkit.powerjava.chapter23;

class MyRunnable implements Runnable{
	String Name;

	public MyRunnable(String name) {
		Name = name;
	}
	
	public void run(){
		for(int i=10; i>=0; i--){
			System.out.print
			(Name+i+" ");
		}
	}
	
}


public class TestThread {
	public static void main(String[] args) {
		Thread t1 = new Thread(new MyRunnable("A"));
		Thread t2 = new Thread(new MyRunnable("B"));
		
		t1.start();
		t2.start();
	}
}
